package Test;


import com.surekam.library.service.serviceImp.bookManageImp.IBookCategoryServiceImp;
import com.surekam.library.view.book.BookCategoryDialog;
import com.surekam.library.view.core.IFunctionalUnit;
import com.surekam.library.view.core.MainWindow;
import com.surekam.library.view.core.exception.PermissionVerifyFaildException;

public class DialogTest {
	public static void main(String[] args) {
		 BookCategoryDialog dialog=new BookCategoryDialog(MainWindow.getMainWindow(),new IBookCategoryServiceImp().
				getBookCategoryWithTree(21));
		 
		 IFunctionalUnit unit = dialog.getFunctionalUnit();
		 try {
			unit.run();
		} catch (PermissionVerifyFaildException e) {
			e.printStackTrace();
		}
		 
	}
}
